package com.chenhao.springcloud.chenhaodesignservice.pattern.creational.prototype;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/12/21 17:03
 */
public class Test {
    public static void main(String[] args) {
        Mail mail = new Mail();
        mail.setContent("初始化模板");
        for (int i= 0;i<10;i++){
            mail.setName("姓名"+i);
            mail.setEmilAddress("姓名"+i+"@126.com");
            mail.setContent("恭喜你中奖了");
            MailUtil.sendMail(mail);
        }
        MailUtil.saveOriginMailRecord(mail);
    }
}
